package com.world.cat.model.sys;

import com.world.common.model.BaseEntity;

import javax.persistence.*;

/**
 * 菜单
 */
@Entity
@Table(name = "sys_menu")
public class Menu extends BaseEntity {
    @Column(name = "name", nullable = false)
    private String name;

    @Column(name = "parent_id", nullable = false)
    private String parentId;

    @Column(name = "url", nullable = false)
    private String url;

    @Column(name = "seq")
    private Integer seq;

    @Column(name = "icon")
    private String icon;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}
